package wsem.result;

import java.util.LinkedHashMap;
import java.util.LinkedList;

public class QueryResult {
	
	private String nomDoc;

	private String xpath;
	
	private boolean pertinent;
	
	private int pertinentValue;
	
	private LinkedList<String> xpathFoundList = new LinkedList<String>();
	
	
	
	public QueryResult(String nomDoc,boolean pertinent) {
		
		this.nomDoc = nomDoc;
		this.xpath = xpath;
		this.pertinent = pertinent;
	}
	
	public QueryResult(String nomDoc,String xpath,boolean pertinent) {
		
		this.nomDoc = nomDoc;
		this.xpath = xpath;
		pertinent = pertinent;
	}

	public String getNomDoc() {
		return nomDoc;
	}

	public void setNomDoc(String nomDoc) {
		this.nomDoc = nomDoc;
	}

	public String getXpath() {
		return xpath;
	}

	public void setXpath(String xpath) {
		this.xpath = xpath;
	}

	public boolean isPertinent() {
		return pertinent;
	}

	public void setPertinent(boolean pertinent) {
		this.pertinent = pertinent;
	}

	public LinkedList<String> getXpathFoundList() {
		return xpathFoundList;
	}

	public void setXpathFoundList(LinkedList<String> xpathFoundList) {
		this.xpathFoundList = xpathFoundList;
	}

	public int getPertinentValue() {
		pertinentValue = pertinent ? 1 : 0;
		return pertinentValue;
	}

	public void setPertinentValue(int pertinentValue) {
		this.pertinentValue = pertinentValue;
	}

}
